a=[354,64,26,-2,6,436,-2,0,26,23,6,63,264364,2546,43]
count=0
num=input("输入数字:")
for i in range(15):
    b=str(a[i])
    d=b.split(num)
    count+=len(d)-1
print(count)

